import pygame
white = (255, 255, 255)
black = (0, 0, 0)
scale_factor = 10.0
surface = None
def display_shape(p_shape, scale_factor = 10):
    if surface == None: return
    for (point1, point2) in p_shape.line_segments:
        p1 = (point1[1] * scale_factor, point1[0] * scale_factor)
        p2 = (point2[1] * scale_factor, point2[0] * scale_factor)

        pygame.draw.line(surface, black, p1, p2)

def object_coords_to_display_coords((x, y)):
    return y * scale_factor, x * scale_factor

def display_coords_to_object_coords((x, y)):
    return y/scale_factor, x/scale_factor
